package com.lysj.admin.master.bussiness.admin.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.bussiness.company.CompanyEntity;
import com.lysj.admin.master.common.spring.mpbase.MyEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author Created by zk on 2020-01-01 12:49
 * @description 用人企业绑定服务商关系
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_admin_provider_bind")
@Table(name = "lysj_admin_provider_bind")
public class CompanyProviderBind extends CompanyEntity {
    private String serviceProviderId;
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal totalMoney;//充值总额
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal commission;//服务费
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal grantMoney;//累计发放
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal balance;//账户余额
    @Column(columnDefinition = "decimal(8,4)")
    private BigDecimal feeRate;//服务费率 存储百分数，计算时应注意除以100
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal maxSalary;//最大薪水
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal minSalary;//最小薪水
}
